package com.pj.wisdomlogistics.mvp.model;


import com.pj.wisdomlogistics.entity.response.BaseResponse;
import com.pj.wisdomlogistics.entity.response.FoodMenu;
import com.pj.wisdomlogistics.mvp.frame.MvpModel;

import java.util.List;

import rx.Observable;


public class MenuEditorModel extends MvpModel {
    public Observable<BaseResponse<List<FoodMenu>>> findNoodleFood(String userID){
        return mApiService.findNoodleFood(userID);
    }

    public Observable<BaseResponse<List<FoodMenu>>> findCookFood(){
        return mApiService.findCookFood();
    }

    public Observable<BaseResponse<List<FoodMenu>>> findCookFood2(String userID){
        return mApiService.findCookFood2(userID);
    }

    public Observable<BaseResponse> modifyNoodleMenu(String foodJson , String userID){
        return mApiService.modifyNoodleMenu(foodJson , userID);
    }

    public Observable<BaseResponse> modifyMenu(String foodJson){
        return mApiService.modifyMenu(foodJson);
    }
}
